#include<iostream>
using namespace std;
int n;
int main()
{
	while (cin >> n) {
		int ans = 0;
		for (int i = 2; i * i<= n; i++) {
			if (n % i == 0) {
				while (n % i == 0) {
					ans++;
					n /= i;
				}
			}
		}
		if (n > 1)ans++;
		cout << ans << endl;
	}
	return 0;
}